<?php
/**
 * Created by PhpStorm.
 * Script Name: menu.php
 * Create: 12/17/22 10:24 AM
 * Description: 功能菜单
 * Author: fudaoji<fdj@kuryun.cn>
 */

$plugin = get_plugin_name(__FILE__);
$admin_prefix = '/app/'.$plugin.'/admin/';
$tenant_prefix = '/app/'.$plugin.'/tenant/';

return [
    'admin' => [
        [
            "title" => "系统设置", "icon" => "", "child" => [
                ["title" => "开放平台", "href" => $admin_prefix . 'wechat/index', "icon" => "fa fa-wechat", "target" => '_self'],
                [
                    "title" => "小程序", "icon" => "fa fa-wechat", "child" => [
                        ["title" => "小程序模板", "href" => $admin_prefix . 'minitemplate/index', "target" => '_self'],
                        ["title" => "开发设置", "href" => $admin_prefix . 'minisetting/index', "target" => '_self'],
                    ]
                ],
                ["title" => "平台账号", "href" => $admin_prefix . 'wechat/config', "icon" => "fa fa-cogs", "target" => '_self'],
            ]
        ]
    ],
    'tenant' => [
        [
            "title" => "公众号", "icon" => "", "child" => [
                ["title" => "数据统计", "icon" => "fa fa-bar-chart", "href" => $tenant_prefix . 'mptj/index'],
                ["title" => "账号管理", "icon" => "fa fa-wechat", "href" => $tenant_prefix . 'mp/index'],
                ["title" => "基础功能", "icon" => "fa fa-align-justify", "child" => [
                        ["title" => "自动回复", "href" => $tenant_prefix . 'mpreply/index', "target" => '_self'],
                        ["title" => "自定义菜单", "href" => $tenant_prefix . 'mpmenu/index', "target" => '_self'],
                        ["title" => "消息管理", "href" => $tenant_prefix . 'mpmsg/index', "target" => '_self'],
                        ["title" => "模板消息", "href" => $tenant_prefix . 'mptemplatemsg/index', "target" => '_self'],
                        ["title" => "二维码/转化链接", "href" => $tenant_prefix . 'mpqrcode/index', "target" => '_self'],
                        ["title" => "素材管理", "href" => $tenant_prefix . 'mpmaterial/index', "target" => '_self']
                    ]
                ],
                ["title" => "粉丝管理", "icon" => "fa fa-users", "child" => [
                        ["title" => "粉丝列表", "href" => $tenant_prefix . 'mpfollow/index', "target" => '_self'],
                        ["title" => "用户标签", "href" => $tenant_prefix . 'mptag/index', "target" => '_self'],
                        ["title" => "黑名单", "href" => $tenant_prefix . 'mpblack/index', "target" => '_self']
                    ]
                ],
                ["title" => "配置", "icon" => "fa fa-cogs", "href" => $tenant_prefix . 'mpsetting/index']
            ]
        ],
        [
            "title" => "小程序", "icon" => "", "child" => [
                ["title" => "账号管理", "icon" => "fa fa-wechat", "href" => $tenant_prefix . 'mini/index'],
                ["title" => "基础功能", "icon" => "fa fa-align-justify", "child" => [
                        ["title" => "数据统计与分析", "href" => $tenant_prefix . 'minitj/index', "target" => '_self'],
                    ["title" => "版本管理", "href" => $tenant_prefix . 'minitemplate/index', "target" => '_self'],
                        ["title" => "类目管理", "href" => $tenant_prefix . 'minicategory/index', "target" => '_self'],
                        ["title" => "体验者", "href" => $tenant_prefix . 'minitester/index', "target" => '_self']
                    ]
                ],
                ["title" => "粉丝管理", "icon" => "fa fa-users", "child" => [
                        ["title" => "粉丝列表", "href" => $tenant_prefix . 'minifollow/index', "target" => '_self']
                    ]
                ],
                ["title" => "配置", "icon" => "fa fa-cogs", "href" => $tenant_prefix . 'minisetting/index'],
            ]
        ],
        [
            "title" => "个微", "icon" => "", "child" => [
                ["title" => "数据统计", "icon" => "fa fa-bar-chart", "href" => $tenant_prefix . 'bottj/index'],
                ["title" => "机器人管理", "icon" => "fa fa-wechat", "href" => $tenant_prefix . 'bot/index'],
                ["title" => "通讯录", "icon" => "fa fa-address-book", "child" => [
                        ["title" => "群组列表", "href" => $tenant_prefix . 'botgroup/index', "target" => '_self'],
                        ["title" => "好友列表", "href" => $tenant_prefix . 'botfriend/index', "target" => '_self'],
                    ]
                ],
                ["title" => "快捷设置", "icon" => "fa fa-cogs", "child" => [
                        ["title" => "关键词回复", "href" => $tenant_prefix . 'botkeyword/index', "target" => '_self'],
                        ["title" => "被动回复", "href" => $tenant_prefix . 'botreply/index', "target" => '_self'],
                        ["title" => "消息群发", "href" => $tenant_prefix . 'bottask/index', "target" => '_self'],
                        ["title" => "消息转播", "href" => $tenant_prefix . 'botforward/index', "target" => '_self']
                    ]
                ],
                ["title" => "朋友圈", "icon" => "fa fa-chrome", "child" => [
                        ["title" => "获取朋友圈", "href" => $tenant_prefix . 'botmoments/pull', "target" => '_self'],
                        ["title" => "发朋友圈", "href" => $tenant_prefix . 'botmoments/index', "target" => '_self']
                    ]
                ],
                ["title" => "配置", "icon" => "fa fa-cogs", "href" => $tenant_prefix . 'botsetting/index'],
            ]
        ],
        /*[
            "title" => "企业微信", "icon" => ""
        ],
        [
            "title" => "视频小商店", "icon" => ""
        ],*/
    ]
];